package com.five.dao;

import com.five.pojo.ClubActReg;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ClubActRegDao {


    List<ClubActReg> list(String actName);

    @Insert("insert into clubactreg(s_name , s_number , s_class , act_name , status , act_club)" +
            "values (#{sName} , #{sNumber} , #{sClass} , #{actName} , #{status} , #{actClub})")
    void addPeople(ClubActReg clubActReg);

    @Select("select * from clubactreg where act_club=#{actClub}")
    List<ClubActReg> getByActClub(String actClub);

    @Update("update clubactreg set status=#{status} where id=#{id}")
    void updataStatus(Integer status, Integer id);

    @Delete("delete from clubactreg where id=#{id}")
    void deleteById(Integer id);
}
